package com.example.demo.mapper;

import com.example.demo.entity.ListingCalendar;

import com.example.demo.vo.ListingCalendarVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ListingCalendarMapper {

    int insertListingCalendar(@Param("listingCalendar") ListingCalendar listingCalendar);

    boolean deleteListingCalendar(@Param("id") String id);

    int updateListingCalendar(@Param("listingCalendar") ListingCalendar listingCalendar);

    List<ListingCalendarVo> selectListingCalendarList(@Param("realPageNum") Integer realPageNum, @Param("pageSize") Integer pageSize);

    boolean selectById(@Param("id") String id);

}